package com.congee02.utils;

/**
 * @author congee(congee02 @ 163.com)
 * @date 1/27/2023 12:40 PM
 */
public class TypeUtils {

    private TypeUtils() {
    }

    public static boolean isSubClass(Class A, Class B) {
        try {
            A.asSubclass(B);
            return true;
        } catch (ClassCastException e) {
            return false;
        }
    }

}
